package common.display
{
    import asset.global.ImageLoadingAsset;

    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.text.TextField;


    public class LoadingMovie extends Sprite
    {
        private var _mc:ImageLoadingAsset;
        private var _tf:TextField;

        public function LoadingMovie(text:String = '')
        {
            _mc = new ImageLoadingAsset ();
            this.addChild (_mc);
            _tf = _mc.txt;
            _tf.text = text;
        }

        public function get text():String
        {
            return _tf.text;
        }

        public function set text(value:String):void
        {
            _tf.text = value;
        }

        public function play():void
        {
            _mc.play ();
        }

        public function stop():void
        {
            _mc.stop ();
        }
    }
}
